<?php
require(dirname(__FILE__)."/../inc/common.inc.php");
admin(10);

if (!empty($regit))
{
	$db->update("UPDATE {$pre}system SET title='".filtrate($title)."',cookiePre='".filtrate($cookiePre)."',cookiePath='".filtrate($cookiePath)."',cookieDomain='".filtrate($cookieDomain)."',session_admin='".filtrate($session_admin)."',footer='{$footer}' where id='{$id}'");
	logo('修改系统设置');
	refreshto('?','修改成功!',2);
}
?>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="js/html5.js"></script>
<script type="text/javascript" src="js/respond.min.js"></script>
<script type="text/javascript" src="js/PIE_IE678.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="css/H-ui.css"/>
<link type="text/css" rel="stylesheet" href="css/H-ui.admin.css"/>
<link type="text/css" rel="stylesheet" href="font/font-awesome.min.css"/>
<!--[if IE 7]>
<link href="font/font-awesome-ie7.min.css" rel="stylesheet" type="text/css" />
<![endif]-->
<title>管理员列表</title>
</head>
<body>
<nav class="Hui-breadcrumb"> <?=get_category(10)?> <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="icon-refresh"></i></a></nav>
<div class="pd-20">
  <div class="text-c">
  <table class="table table-border table-bordered table-bg">
<form name="form1"  method="post">
<input type="hidden" name="id" value="<?=$webdb['id']?>" />


    <tr>
    	<td width="17%" height="22" align="right" bgcolor="#FFFFFF" class="tdbg">系统名称：</td>
      <td width="83%" height="22" bgcolor="#FFFFFF" class="tdbg"><input name="title" type="text" class="input-text" value="<?=$webdb['title']?>" size="40"></td>
    </tr>
     <tr>
    	<td width="17%" height="22" align="right" bgcolor="#FFFFFF" class="tdbg">cookie名：</td>
      <td width="83%" height="22" bgcolor="#FFFFFF" class="tdbg"><input name="cookiePre" type="text" class="input-text" value="<?=$webdb['cookiePre']?>" size="40"></td>
    </tr>
    <tr>
    	<td width="17%" height="22" align="right" bgcolor="#FFFFFF" class="tdbg">cookie路径：</td>
      <td width="83%" height="22" bgcolor="#FFFFFF" class="tdbg"><input name="cookiePath" type="text" class="input-text" value="<?=$webdb['cookiePath']?>" size="40"></td>
    </tr>
     <tr>
    	<td width="17%" height="22" align="right" bgcolor="#FFFFFF" class="tdbg">cookie域名：</td>
      <td width="83%" height="22" bgcolor="#FFFFFF" class="tdbg"><input name="cookieDomain" type="text" class="input-text" value="<?=$webdb['cookieDomain']?>" size="40"></td>
    </tr>
     <tr>
    	<td width="17%" height="22" align="right" bgcolor="#FFFFFF" class="tdbg">session名：</td>
      <td width="83%" height="22" bgcolor="#FFFFFF" class="tdbg"><input name="session_admin" type="text" class="input-text"  value="<?=$webdb['session_admin']?>" size="40"></td>
    </tr>


     <tr>
    	<td width="17%" height="22" align="right" bgcolor="#FFFFFF" class="tdbg">底部信息：</td>
      <td width="83%" height="22" bgcolor="#FFFFFF" class="tdbg"><textarea class="textarea" name="footer" cols="60" rows="10" style="width: 80%"><?=$webdb['footer']?></textarea></td>
    </tr>

    <tr>
   	  <td height="22" colspan="3" align="center" bgcolor="#FFFFFF" class="tdbg"><input type="submit" value="提交" name="regit"  class="btn btn-success radius"></td>
    </tr>
  </form>
</table>
</div>
</div>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/Validform_v5.3.2_min.js"></script> 
<script type="text/javascript" src="layer/layer.min.js"></script>
<script type="text/javascript" src="js/H-ui.js"></script>
<script type="text/javascript" src="js/H-ui.admin.js"></script>
<script type="text/javascript">
$(".Huiform").Validform(); 
</script>

</body>
</html>
